//
//  ViewController.swift
//  YJWeiBo
//
//  Created by Jim1024 on 2017/1/9.
//  Copyright © 2017年 Jim1024. All rights reserved.
//

import UIKit
import Alamofire

class ViewController: UIViewController {
    
    private let testPrivate = "1"
    fileprivate let testFileprivate = "2"
    internal let testInternal = "internal"

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.gray
        view.addSubview(welcomeLabel)
        welcomeLabel.snp.makeConstraints { (make) in
            make.centerX.equalToSuperview()
            make.top.equalToSuperview().offset(200)
        }
        
        YJNetworkManager.request(urlStrig: "http://59.110.18.53:10066/eventsInfo?id=1292") { (result, error) in
        }
        
        let icon1 = UIImageView(image: defaultAvatar())
        icon1.frame = CGRect(x: 0, y: 0, width: 50, height: 50)
        view.addSubview(icon1)
        
        let icon2 = UIImageView(image: defaultAvatar())
        icon2.frame = CGRect(x: 50, y: 100, width: 100, height: 100)
        view.addSubview(icon2)
        
        
//        UIView.animate(withDuration: <#T##TimeInterval#>, animations: <#T##() -> Void#>, completion: <#T##((Bool) -> Void)?##((Bool) -> Void)?##(Bool) -> Void#>)
    }

    private lazy var welcomeLabel: UILabel = {
        let label = UILabel()
        label.text = "欢迎归来"
        label.font = UIFont.systemFont(ofSize: 14)
        label.alpha = 1
        label.backgroundColor = UIColor.blue
        return label
    }()
}

extension ViewController {
    var accessPrivate: String {
        return testFileprivate
    }
}

